/**
 * @Description : 路由：企业管理模块索引页
 * @Author      : zhongzerong
 * @DateTime    : 2025/04/22 12:34
 */
// 将直接导入改为懒加载
// import layoutMain from "@/components/layout.vue";

const routerCompany = [
    {
        path: "/company",
        name: "companyWeb",
        component: () => import(/* 代码块名称: "布局" */ "@/components/layout.vue"),
        redirect: "/company/index",
        meta: { title: "企业管理", requiresAuth: true },
        children: [
            {
                path: "index",
                name: "companyIndexWeb",
                meta: {
                    keepAlive: true,
                    requiresAuth: true,
                    title: "企业主页",
                    icon: "",
                },
                component: () => import(/* 代码块名称: "企业-核心" */ "@/views/company/index.vue"),
            },
            {
                path: "config",
                name: "companyConfigWeb",
                meta: {
                    keepAlive: true,
                    requiresAuth: true,
                    title: "企业配置",
                    icon: "",
                },
                component: () => import(/* 代码块名称: "企业-核心" */ "@/views/company/config.vue"),
            },
            {
                path: "jobList",
                name: "jobListWeb",
                meta: {
                    keepAlive: true,
                    requiresAuth: true,
                    title: "招聘岗位",
                    icon: "",
                },
                component: () => import(/* 代码块名称: "企业-职位" */ "@/views/company/jobList.vue"),
            },
            {
                path: "jobForm",
                name: "jobFormWeb",
                meta: {
                    keepAlive: false,
                    requiresAuth: true,
                    title: "发布职位",
                    icon: "",
                },
                component: () => import(/* 代码块名称: "企业-职位" */ "@/views/company/jobForm.vue"),
            },
            {
                path: "receivedResume",
                name: "receivedResumeWeb",
                meta: {
                    keepAlive: true,
                    requiresAuth: true,
                    title: "收到的简历",
                    icon: "",
                },
                component: () => import(/* 代码块名称: "企业-简历" */ "@/views/company/receivedResume.vue"),
            },
            {
                path: "resume/:id",
                name: "resumeDetailWeb",
                meta: {
                    keepAlive: false,
                    requiresAuth: true,
                    title: "简历详情",
                    icon: "",
                },
                component: () => import(/* 代码块名称: "企业-简历" */ "@/views/company/resume/[id].vue"),
            },
            {
                path: "dashboard",
                name: "companyDashboardWeb",
                meta: {
                    keepAlive: true,
                    requiresAuth: true,
                    title: "数据分析",
                    icon: "",
                },
                component: () => import(/* 代码块名称: "企业-分析" */ "@/views/company/dashboard.vue"),
            },
            {
                path: "file",
                name: "companyFileWeb",
                meta: {
                    keepAlive: true,
                    requiresAuth: true,
                    title: "企业文件管理",
                    icon: "",
                },
                component: () => import(/* 代码块名称: "企业-其他" */ "@/views/company/file.vue"),
            },
            {
                path: "log",
                name: "companyLogWeb",
                meta: {
                    keepAlive: true,
                    requiresAuth: true,
                    title: "企业日志",
                    icon: "",
                },
                component: () => import(/* 代码块名称: "企业-其他" */ "@/views/company/log.vue"),
            },
        ],
    },
    {
        // 企业登录页面路由
        path: "/companyLogin",
        name: "companyLoginWeb",
        meta: { title: "企业管理登录", requiresAuth: false },
        component: () => import(/* 代码块名称: "企业-认证" */ "@/views/company/login.vue"),
    },
];

export default routerCompany;
